package com.fourforfo.fourmall.order.feign;

import com.fourforfo.common.utils.R;
import com.fourforfo.fourmall.order.vo.CartItemVO;
import com.fourforfo.fourmall.order.vo.MemberReceiveAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @program: xxl-sso-core
 * @description:
 * @author: fourforfo
 * @email: fourforfo@gmail.com
 * @create: 2022-08-31 16:55
 **/
@FeignClient("fourmall-member")
public interface MemberFeignService {


    @ResponseBody
    @GetMapping("/member/memberreceiveaddress/list/{memberId}/address")
    List<MemberReceiveAddressVO> getAddress(@PathVariable("memberId") Long memberId);

    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R info(@PathVariable("id") Long id);
}
